/*
 * Linguagens de Programação - 2º Ano - 2º Semestre - Linguagem de Programação C
 * Autor: Duarte Peres / Nº5621
 *
 * teachers.i - Módulo de Interface entre C e o Swig.
 *				Este ficheiro contem todos os metodos do módulo principal teachers.c.
 *
*/


%module teachers

%{
	#include <Python.h>
	PyObject* queryPerYear(int year);
	PyObject* queryPerEstablishmentPerYear(int year, char* establishment);
	PyObject* queryPerDegreePerYear(int year, char* degree);
	PyObject* queryPerEstablishmentPerDegreePerYear(int year, char* degree, char* establishment);
	PyObject* queryListEstablishmentPerYear(int year);
	PyObject* queryListHoldersPerDegreePerYear(int year, char* degree);
	int queryNumDocentes(int year, char* establishment);
	PyObject* queryListLeavingOREntry(int year, char* establishment);
	
%}

	#include <Python.h>
	PyObject* queryPerYear(int year);
	PyObject* queryPerEstablishmentPerYear(int year, char* establishment);
	PyObject* queryPerDegreePerYear(int year, char* degree);
	PyObject* queryPerEstablishmentPerDegreePerYear(int year, char* degree, char* establishment);
	PyObject* queryListEstablishmentPerYear(int year);
	PyObject* queryListHoldersPerDegreePerYear(int year, char* degree);
	PyObject* queryListLeavingOREntry(int year, char* establishment);
	int queryNumDocentes(int year, char* establishment);
	PyObject* queryListLeavingOREntry(int year, char* establishment);
